package xyz.suancaiyu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 第三章 构建微服务的准备.
 *
 * @author puruidong
 * @version 2018/12/28 21:11
 */
@SpringBootApplication
@RestController
public class HelloWorldApplication {


    public static void main(String[] args) {
        SpringApplication.run(HelloWorldApplication.class);
    }

    /**
     * @return
     */
    @RequestMapping("/")
    public String hi() {
        return "Spring Cloud First Demo!";
    }


}
